package com.heima.apis;

import cn.hutool.extra.template.TemplateException;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.vos.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

@FeignClient(value = "heimaarticle")
public interface ArticleApi {

    @PostMapping("/api/v1/article/save")
    Result saveArticle(@RequestBody ArticleDto articleDto) throws Exception;

}
